package com.hollycrm.hollysqm;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;


/**
 * 主启动类
 * 与WebApplication相同
 * @SpringBootApplication 注解的程序入口类已经包含@Configuration，不含@ServletComponentScan
 * @EnableScheduling 用于启动定时服务，必需得加
 * @author jianglong
 *
 */
@SpringBootApplication
@ImportResource(locations={"classpath:application-config.xml"})
public class HandleStartApplication {
	private static final Logger log = LoggerFactory.getLogger(HandleStartApplication.class);
	/**
	 * 主启动方法
	 * @param args
	 */
	public static void main(String[] args) {
		log.info("启动服务中...");
		SpringApplication.run(HandleStartApplication.class, args);		
		log.info("服务已启动...");
	}
	
}
